rewrite rule to skip folder [closed]

Posted by redcoder on Stack Overflow See other posts from Stack Overflow or by redcoder
Published on 2010-05-21T19:35:31Z Indexed on 2010/05/22 7:10 UTC
Read the original article Hit count: 169

Filed under:
|
RewriteEngine on
RewriteBase /tradesalvage/demo
RewriteRule ^featured-cars/?$ index.php [L]
RewriteRule ^current-stock/?$ carlist.php [L]
RewriteRule ^about-us/?$ aboutus.php [L]
ErrorDocument 500 /tradesalvage/demo/500.php
ErrorDocument 404 /tradesalvage/demo/404.php

I have the above rule in .htaccess

when access url "http://localhost/tradesalvage/demo/about-us" , it does redirect to aboutus.php file .It also works fine with the rest of the rule.

But i have a problem when i create a admin folder.WHen access "http://localhost/tradesalvage/demo/admin/add-data" , it goes to the 404 error page.How do I write the rule to skip the admin folder ?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite